﻿@model VehicleManagement.Models.DriverManager

@{
    ViewBag.Title = "GetDriverManagerInfo";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<script type="text/javascript" language="javascript">
    //个人中心的几个框
    function btnsub_click() {

        document.getElementById("subBox").style.display = "block";


    }
    function subtipclose_click() {

        document.getElementById("subBox").style.display = "none";

    }
    function subsure_click() {

        document.getElementById("subBox").style.display = "none";


    }
    function subpwdclose_click() {


        document.getElementById("bigbox").style.display = "none";
        document.getElementById("pwdBox").style.display = "none";

    }
    function changepwd_click() {

        document.getElementById("bigbox").style.display = "block";
        document.getElementById("pwdBox").style.display = "block";

    }
    function confirm_click() {

        document.getElementById("bigbox").style.display = "none";
        document.getElementById("pwdBox").style.display = "none";
        alert("修改成功!");

    }
    function changeque_click() {

        document.getElementById("bigbox").style.display = "block";
        document.getElementById("Questionbox").style.display = "block";


    }
    function mqueclose_click() {

        document.getElementById("bigbox").style.display = "none";
        document.getElementById("Questionbox").style.display = "none";

    }
    function modify_click() {

        document.getElementById("bigbox").style.display = "none";
        document.getElementById("Questionbox").style.display = "none";
        alert("修改成功");

    }
    function upload_click() {

        document.getElementById("uploadFile").click();


    }
    function file_click() {

        var id = document.getElementById("uploadFile");
        var myreg = /(.jpg|.gif|.png|.bmp|.jpeg|.psd|.JPG|.GIF|.PNG|.BMP|.JPEG|.PSD)$/;
        if (!myreg.test(id.value)) {
            alert("仅支持gif、png、jpg、bmp、jpeg、psd图片文件!");
        }
        else {

            //document.getElementById("Button1").click();
            //window.top.Callback(id.value);
        }
    };

</script>

<div class="Permas">
    @* @Html.Partial("_PartviewDriverManager")*@
    <div class="Setoutbox">
        <div id="settop">
            <div id="headbox">
                <img src="../../Content/themes/picture/head.png" alt="" />
                <a href="#" onclick="upload_click()">更换头像</a>
            </div>
            <div id="Infooutbox">
                <div class="ptittle">
                    个人基本资料</div>
                <div class="pdiv" id="prowfirst">
                    <span class="plable">姓&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   名 :</span><span class="Pinfomation"
                        id="nametext">张测试</span> <span class="plable" id="lbsex">性 别 :</span><span class="Pinfomation"
                            id="sextext">男</span>
                </div>
                <div class="pdiv">
                    <span class="plable">电子邮件 :</span><div class="Pinfomation">
                        418310122@qq.com</div>
                </div>
                <div class="pdiv">
                    <span class="plable">联系电话 :</span><div class="Pinfomation">
                        182394848</div>
                </div>
                <div class="pdiv">
                    <span class="plable">家庭住址 :</span><div class="Pinfomation">
                        福建师范大学</div>
                </div>
            </div>
            <div class="clear">
            </div>
        </div>
        <div id="setmiddle">
            <div id="middlebox">
                <div class="ptittle">司机信息:</div>
                <div class="pdiv">
                    <div class="driverinfobox">
                        <span class="plable">驾驶证号 :</span><span class="driverTip">1230120091</span></div>
                    <div class="driverinfobox">
                        <span class="plable">驾 驶 档 案 号:</span><span class="driverTip">1230120091</span></div>
                    <div class="driverinfobox">
                        <span class="plable">发 证 日 期 :</span><span class="driverTip">2011-12-17</span></div>
                </div>
                <div class="pdiv">
                    <div class="driverinfobox">
                        <span class="plable">准驾车型 :</span><span class="driverTip">XX型</span></div>
                    <div class="driverinfobox">
                        <span class="plable">驾照年审日期 :</span><span class="driverTip">2012-3-16</span></div>
                    <div class="driverinfobox">
                        <span class="plable">是否负责人 :</span><span class="driverTip">是</span></div>
                </div>
                <div class="pdiv" id="toAdmin">
                    (  司机信息不可修改，如有误，请联系<a href="#">系统管理员</a>)
                    </div>
            </div>
        </div> 
        <div id="setbottom">
          
          <div class="ptittle">密码管理</div>
          <div class="pdiv"><span class="plable">密&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;码:</span><div id="pwd">************</div><input type="button" class="pwbtn" value="更改" onclick="changepwd_click()"/></div>
          <div class="pdiv"><span class="plable">密码问题:</span><div class="pwdiv">已设置</div><input type="button"  class="pwbtn" value="重置" onclick="changeque_click()"/></div>
          <div class="pdiv"><span class="plable">密保答案:</span><div class="pwdiv">已设置</div></div>
          <div id="subbutton"><input class="submit" id="btnsubmit" type="submit" value="提交修改" onclick="btnsub_click()"/></div>
         </div> 
    </div> 
    <div class="toptitle"> 司机负责人管理平台 </div>
    <div class="car">
       
    </div> 
    <div id="subBox">
       <img  class="subclose" src="../../Content/themes/picture/subclose.png" alt="" onclick="subtipclose_click()"/> 
       <div class="subToptittle">提交成功</div>
       <div id="submid">提交成功，个人信息已被重置。</div> 
       <div id="sure"><input class="submit" type="button" value="确  认" onclick= "subsure_click()"/></div> 
      </div>

 <div class="headload"> 
  <input id="uploadFile" type="file" onchange="file_click()"/>
</div>
 </div> 
@*<p>
    @Html.ActionLink("Edit", "Edit", new { id=Model.DriverManagerID }) |
    @Html.ActionLink("Back to List", "Index")
</p>
<p>
    @Html.ActionLink("车辆查询", "../CarInfo/Index")
</p>
<p>
    @Html.ActionLink("查询不可用车辆", "../CarInfo/SelectCarByAvailable")|@Html.ActionLink("查询SJ001", "../CarInfo/SelectCarByNumber")|@Html.ActionLink("查询校车", "../CarInfo/SelectCarByType")
</p>
<p>
    @Html.ActionLink("司机查询", "../Driver/Index")
</p>
<p>
    @Html.ActionLink("查看申请表", "../Apply/GetAllApplys")
</p>
<p>
    @Html.ActionLink("查看审批表", "../Approval/GetAllApprovals")
</p>
<p>
    @Html.ActionLink("车辆事故", "../Accident/Index")
</p>
<p>
    @Html.ActionLink("司机违章", "../BreakRules/Index")
</p>
<p>
    @Html.ActionLink("车辆维修", "../Fix/Index")
</p>
<p>
    @Html.ActionLink("车辆购件", "../CarParts/Index")
</p>*@




